﻿@model MvcGMaps.ViewModels.UserModel
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" aria-hidden="true" data-dismiss="modal">&times;</button>
            <h4 class="modal-title" id="loginModalLabel">Авторизация</h4>
        </div>
        <div class="modal-body">
            @using (Html.BeginForm("Login", "Home", FormMethod.Post, new { @class = "form-horizontal", @id = "loginForm", @role = "form" }))
            {   
                @Html.AntiForgeryToken()
                <fieldset>
                    <div class="form-group input-group-sm">
                        @Html.LabelFor(m => m.Username, "Имя пользователя: ", new { @class = "control-label" })
                        @Html.TextBoxFor(m => m.Username, new { @class = "form-control input-sm" })
                    </div>
                    <div class="form-group input-group-sm">
                        @Html.LabelFor(m => m.Password, "Пароль: ", new { @class = "control-label" })
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control input-sm" })
                    </div>
                </fieldset>
            }
        </div>
        <div class="modal-footer">
            <div class="btn-group-sm">
                <button type="button" class="btn btn-default" data-dismiss="modal">Отмена</button>
                <button type="button" class="btn btn-sm btn-primary" aria-hidden="true" onclick="checkLogin();">OK</button>
            </div>
        </div>
    </div>
</div>